package org.example.java_chatroom.api;

/**
 * @Author @fiber-cloud
 * @Date 2025/11/7 9:50
 * 这个类表示一个响应
 */
public class MessageResponse {
    private String type = "message";

     private int fromId;
     private String fromName;
     private int sessionId;
     private String content;


    public int getSessionId() {
        return sessionId;
    }

    public void setSessionId(int sessionId) {
        this.sessionId = sessionId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getFromId() {
        return fromId;
    }

    public void setFromId(int fromId) {
        this.fromId = fromId;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
